﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>  
<head>
<style>
body { background: #f5f5f5 ;}
</style>
<script type="text/javascript" src="resource/js/DatePicker/WdatePicker.js"></script>
<script language="javascript">
function goPage(pageNo) {
	document.selectForm.pageNo.value = pageNo;
	document.selectForm.fcRecvRawMsgIdSelect.value = document.selectForm.fcRecvRawMsgIdSelected.value;
	document.selectForm.fcMessageIdSelect.value = document.selectForm.fcMessageIdSelected.value;
	document.selectForm.fcSenderSelect.value = document.selectForm.fcSenderSelected.value;
	document.selectForm.fcReceiverSelect.value = document.selectForm.fcReceiverSelected.value;
	document.selectForm.fromDateSelect.value = document.selectForm.fromDateSelected.value;
	document.selectForm.toDateSelect.value = document.selectForm.toDateSelected.value;
	document.selectForm.submit();
}
function comparesDate(){
	var fromDate = $("#fromDate").val();
	var toDate = $("#toDate").val();
	if(""!=fromDate && ""!=toDate){
		if(compareDate(fromDate,toDate)>0){
			alert("开始时间不能大于结束时间，请重新选择！");
		}
	}
	$('#selectForm').submit();
}
</script>
</head>  
<body>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <!-- Page Head -->
    <div id="page-title"><h3>发送报文查询</h3></div>
    <div class="pgline"></div>
    <div class="notification querytj png_bg">
     <div>
      <form method="post" action="messageQuerySend" id="selectForm" name="selectForm">
       <input type="hidden" name="pageNo" value="<c:out value="${pageNo}"/>" />
       <input type="hidden" name="fcRecvRawMsgIdSelected" value="<c:out value="${fcRecvRawMsgIdSelect}"/>" />
       <input type="hidden" name="fcMessageIdSelected" value="<c:out value="${fcMessageIdSelect}"/>" />
       <input type="hidden" name="fcSenderSelected" value="<c:out value="${fcSenderSelect}"/>" />
       <input type="hidden" name="fcReceiverSelected" value="<c:out value="${fcReceiverSelect}"/>" />
       <input type="hidden" name="fromDateSelected" value="<c:out value="${fromDateSelect}"/>" />
       <input type="hidden" name="toDateSelected" value="<c:out value="${toDateSelect}"/>" />
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="13%" height="35" align="right">&nbsp;&nbsp;报文ID：              </td>
            <td width="29%"><input type="text" name="fcRecvRawMsgIdSelect"  class="input2" value="<c:out value="${fcRecvRawMsgIdSelect}" />"/></td>
            <td width="15%" align="right">报文编号：              </td>
            <td width="26%"><input type="text" name="fcMessageIdSelect"  class="input2" value="<c:out value="${fcMessageIdSelect}" />"/></td>
            <td width="17%" rowspan="3"><div><a class="button" href="javascript:void(0);" onclick="comparesDate();">查询</a></div></td>
          </tr>

          <tr>
            <td height="35" align="right">&nbsp;&nbsp;发送方：              </td>
            <td height="35"><input type="text" name="fcSenderSelect"  class="input2" value="<c:out value="${fcSenderSelect}" />"/></td>
            <td width="15%" align="right">接收方：              </td>
            <td width="26%"><input type="text" name="fcReceiverSelect"  class="input2" value="<c:out value="${fcReceiverSelect}" />"/></td>
          </tr>
          
                    <tr>
            <td height="35" align="right">发送时间： </td>
            <td height="35" colspan="3">
            <input type="text" id="fromDate" name="fromDateSelect" class="Wdate input2" value="<c:out value="${fromDateSelect}" />" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
            &nbsp;至&nbsp;
            <input type="text" id="toDate" name="toDateSelect" class="Wdate input2" value="<c:out value="${toDateSelect}" />" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
          </tr>
          
        </table>
        </form>
      </div>
    </div>
    
    <div class="clear"></div>

    
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>发送报文列表</h3>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab">
          <table>
            <thead>
              <tr>
                <th>报文ID</th>
                <th>报文编号</th>
                <th>发送方</th>
                <th>接收方</th>
                <th>处理时间</th>
                <th>数据大小</th>
                <th>状态</th>
              </tr>
            </thead>
            <tfoot>
              <tr>
                <td colspan="7">
                 <c:out value="${pageInfo}" escapeXml="false"></c:out>
                  <!-- End .pagination -->
                  <div class="clear"></div></td>
              </tr>
            </tfoot> 
           <tbody>
              <tr>
                <td></td>
                <c:forEach var="dataxSendRawMsgVO" items="${dataxSendRawMsgVOList}">
              <tr>
                <td><c:out value="${dataxSendRawMsgVO.fcRecvRawMsgId}"></c:out></td>
                <td><c:out value="${dataxSendRawMsgVO.fcMessageId}"></c:out></td>
                <td><c:out value="${dataxSendRawMsgVO.fcSenderId}"></c:out></td>
                <td><c:out value="${dataxSendRawMsgVO.fcReceiverId}"></c:out></td>
                <td><fmt:formatDate value="${dataxSendRawMsgVO.fdBackUpTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                <td><c:out value="${dataxSendRawMsgVO.fiDataSize}"></c:out></td>
                <td><c:out value="${catagoryMessageStatusMap[fn:trim(dataxSendRawMsgVO.fiStatus)]}"></c:out></td>
              </tr>
            
             </c:forEach>
              </tr>
            </tbody>
          </table>
        </div>
        <!-- End #tab1 -->
      </div>
      <!-- End .content-box-content -->
    </div>
  </div>
  <!-- End #main-content -->
</div>
</body>
</html>
